import request from "@/utils/request";

// 头部分类导航
export const getBrand = (limit) => {
  return request({
    method: "GET",
    url: "/home/brand",
    params: limit,
  });
};

/**
 * 获取广告图
 * @returns Promise
 */

export const getBanner = () => {
  return request({
    method: "GET",
    url: "/home/banner",
  });
};

/**
 * 获取新鲜事物
 * @returns Promise
 */

export const getNews = () => {
  return request({
    method: "GET",
    url: "/home/new",
  });
};
/**
 * 获取热门品牌
 * @returns Promise
 */

export const getHots = () => {
  return request({
    method: "GET",
    url: "/home/hot",
  });
};
/**
 * 获取商品
 * @returns Promise
 */

export const getGoods = () => {
  return request({
    method: "GET",
    url: "/home/goods",
  });
};
/**
 * 获取最新专题
 * @returns Promise
 */

export const getSpecial = () => {
  return request({
    method: "GET",
    url: "/home/special",
  });
};
